package com.wanyang.bo;

import com.wanyang.dos.MemberDO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class MemberBO extends MemberDO {

    public static MemberBO newInstance(MemberDO memberDO) {
        if (memberDO == null)
            return null;

        MemberBO memberBO = new MemberBO();

        BeanUtils.copyProperties(memberDO, memberBO);
        return memberBO;
    }

}
